package com.zheng.study.base.entity;

import com.zheng.study.base.bean.BaseEnumManager;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;

/**
 * 父类 通用属性
 * ============================================================================
 * createDate:  2018/5/23 。
 * ============================================================================
 */
@MappedSuperclass
public class NameEntity extends BaseEntity {
	private static final long serialVersionUID = -8672121382206799768L;

	/**
	 * 当前状态
	 */
	protected BaseEnumManager.StateEnum state;
	/**
	 * 名称
	 */
	protected String name;
	/**
	 * 拼音首字母
	 */
	protected String pinYinHead;
	/**
	 * 拼音
	 */
	protected String pinYin;

	@Enumerated(EnumType.STRING)
	public BaseEnumManager.StateEnum getState() {
		return state;
	}

	public void setState(BaseEnumManager.StateEnum state) {
		this.state = state;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPinYinHead() {
		return pinYinHead;
	}

	public void setPinYinHead(String pinYinHead) {
		this.pinYinHead = pinYinHead;
	}

	public String getPinYin() {
		return pinYin;
	}

	public void setPinYin(String pinYin) {
		this.pinYin = pinYin;
	}
}
